/*
 *  Camera.c
 *  graphics1
 *
 *  Created by Javier Quevedo on 12/8/08.
 *  Copyright 2008 __MyCompanyName__. All rights reserved.
 *
 */

#include "Camera.h"
#if defined(WIN32)
#include <GL/glut.h>
#else
#include <GLUT/glut.h>
#endif



void placeCameraAt(Camera * _camera)
{

	gluLookAt(_camera->eyeX , _camera->eyeY, _camera->eyeZ, _camera->centerX, _camera->centerY , _camera->centerZ,0.0 ,1.0 ,0);

}

void setCamera (Camera * _camera, float _eyeX,float _eyeY,float  _eyeZ,float _centerX,float _centerY,float _centerZ)
{
	_camera->eyeX = _eyeX;
	_camera->eyeY = _eyeY;
	_camera->eyeZ = _eyeZ;
	_camera->centerX = _centerX;
	_camera->centerY = _centerY;
	_camera->centerZ = _centerZ;

}

void moveCloser(float _amount)
{


}

void moveUp(Camera * _camera, float amount)
{
	_camera->eyeY = _camera->eyeY + 0.1;
}

void moveDown(Camera * _camera, float _amount)
{
	_camera->eyeY = _camera->eyeY - 0.1;
}